package com.mdd.admin.validate.course;

import com.mdd.admin.validate.BaseParam;
import com.mdd.common.validator.annotation.IDMust;
import com.mdd.common.validator.annotation.IntegerContains;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 课程参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class StudyCourseParam extends BaseParam {

    @NotNull(message = "courseId参数缺失", groups = {delete.class})
    @DecimalMin(value = "0", message = "courseId参数值不能少于0", groups = {delete.class})
    private Integer courseId;

    @NotNull(message = "tuserId参数缺失", groups = {delete.class})
    @DecimalMin(value = "0", message = "userId参数值不能少于0", groups = {delete.class})
    private Integer userId;

}
